package com.pingan.haofang.searchcloud.solr.expression;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * sort facet节点
 * 
 * @author LUYI374
 * @date 2017年7月17日
 * @since 1.0.0
 */
public class SolrFacetNode {

    private Long offset;
    private Long limit;
    private SolrFacetType type;
    private String field;
    private LinkedHashMap<String, SolrSortType> sort;
    private Map<String, Object> facet;
    private boolean missing;
    // range查询专用
    private Integer start;
    private Integer end;
    private Integer gap;
    private Boolean hardend;

    public SolrFacetType getType() {
        return type;
    }

    public void setType(SolrFacetType type) {
        this.type = type;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public LinkedHashMap<String, SolrSortType> getSort() {
        return sort;
    }

    public void setSort(LinkedHashMap<String, SolrSortType> sort) {
        this.sort = sort;
    }

    public Map<String, Object> getFacet() {
        return facet;
    }

    public void setFacet(Map<String, Object> facet) {
        this.facet = facet;
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getLimit() {
        return limit;
    }

    public void setLimit(Long limit) {
        this.limit = limit;
    }

    public boolean isMissing() {
        return missing;
    }

    public void setMissing(boolean missing) {
        this.missing = missing;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getEnd() {
        return end;
    }

    public void setEnd(Integer end) {
        this.end = end;
    }

    public Integer getGap() {
        return gap;
    }

    public void setGap(Integer gap) {
        this.gap = gap;
    }

    public Boolean getHardend() {
        return hardend;
    }

    public void setHardend(Boolean hardend) {
        this.hardend = hardend;
    }

}
